<template>
  <div id="app">

    <!-- <user-info></user-info> 测试使用vuex中的数据 -->

    <!-- 路由总出口,所有的路由都将展示在本区域 -->
    <router-view />
  </div>
</template>
<script>
// import userInfo from './views/userInfo.vue'
import { useStore } from 'vuex'
export default {
  components: {
    // userInfo
  },
  setup () {
    const store = useStore()
    console.log(store)
    setTimeout(() => {
      // store.commit('user/setUserName', '贾永超')
    }, 3000)
  }
}
</script>
<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
